home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Bases de données / □ New Mint Soft® / Ten Digits 1.1 / Ten Digits®©1.1 / Ten DigitsÆ©1.1 / stack.txt < prev    next >
Text File  |  1996-01-27  |  5KB  |  157 lines

  1. -- stack: in.1
  2. -- format: 10 (HyperCard 2)
  3. -- flags: 0x5400 (can't delete, can't peek)
  4. -- protect password hash: 361761537
  5. -- maximum user level: 5 (scripting)
  6. -- window: Rect(x1=592, y1=55, x2=1008, y2=295)
  7. -- screen: Rect(x1=0, y1=0, x2=1024, y2=768)
  8. -- card dimensions: w=416 h=240
  9. -- scroll: x=0 y=0
  10. -- background count: 1
  11. -- first background id: 2737
  12. -- card count: 1
  13. -- first card id: 4482
  14. -- list block id: 3044
  15. -- print block id: 3986
  16. -- font table block id: 3424
  17. -- style table block id: 3300
  18. -- free block count: 2
  19. -- free size: 43488 bytes
  20. -- total size: 90112 bytes
  21. -- stack block size: 4096 bytes
  22. -- created by hypercard version: 0x02018000
  23. -- compacted by hypercard version: 0x02018000
  24. -- modified by hypercard version: 0x02018000
  25. -- opened by hypercard version: 0x02018000
  26. -- patterns[0]: 0x0000000000000000
  27. -- patterns[1]: 0x8000000008000000
  28. -- patterns[2]: 0x8800220088002200
  29. -- patterns[3]: 0x8888222288882222
  30. -- patterns[4]: 0x88AA22AA88AA22AA
  31. -- patterns[5]: 0xCCAA33AACCAA33AA
  32. -- patterns[6]: 0xEEAABBAAEEAABBAA
  33. -- patterns[7]: 0xEEBBBBEEEEBBBBEE
  34. -- patterns[8]: 0xFFBBFFEEFFBBFFEE
  35. -- patterns[9]: 0xFFBBFFFFFFBBFFFF
  36. -- patterns[10]: 0x8010022001084004
  37. -- patterns[11]: 0xFFFFFFFFFFFFFFFF
  38. -- patterns[12]: 0x8822882288228822
  39. -- patterns[13]: 0x1122448811224488
  40. -- patterns[14]: 0xC4800C6843023026
  41. -- patterns[15]: 0xB130031BD8C00C8D
  42. -- patterns[16]: 0xAA00AA00AA00AA00
  43. -- patterns[17]: 0x8822552288225522
  44. -- patterns[18]: 0x8855225588552255
  45. -- patterns[19]: 0x77DD77DD77DD77DD
  46. -- patterns[20]: 0x8000000000000000
  47. -- patterns[21]: 0xAA55AA55AA55AA55
  48. -- patterns[22]: 0x038448300C020101
  49. -- patterns[23]: 0x8244394482010101
  50. -- patterns[24]: 0x8814224188412214
  51. -- patterns[25]: 0x8080413E080814E3
  52. -- patterns[26]: 0x22048C7422179810
  53. -- patterns[27]: 0xBE808808EB088880
  54. -- patterns[28]: 0x25C8328964244C92
  55. -- patterns[29]: 0xA29C41BE2AC914EB
  56. -- patterns[30]: 0x40A00000040A0000
  57. -- patterns[31]: 0x8040200002040800
  58. -- patterns[32]: 0xAA00800088008000
  59. -- patterns[33]: 0xFF80808080808080
  60. -- patterns[34]: 0x081C22C180010204
  61. -- patterns[35]: 0xFF808080FF080808
  62. -- patterns[36]: 0xF87422478F172271
  63. -- patterns[37]: 0xBF00BFBFB0B0B0B0
  64. -- patterns[38]: 0xFF7FBE5DA2418000
  65. -- patterns[39]: 0xFAF5FAF5A050A050
  66. -- checksum: 0x8462F194
  67. ----- HyperTalk script -----
  68. -- on openbackground --merryxmas
  69. -- on closebackground --merryxmas
  70. -- on idle --merryxmas
  71. -- ΓÇóΓÇóΓÇó    NE PAS MODIFIER LES 3 LIGNES PRECEDENTES    ΓÇóΓÇóΓÇó
  72. -- ΓÇóΓÇóΓÇó CECI EST LE VACCIN CONTRE LE VIRUS ΓÇ£MERRYXMASΓÇ¥ ΓÇóΓÇóΓÇó
  73. -------------------------------------------------------------------
  74. on openStack
  75.   global PrevUseLev
  76.   put "├Ç propos" into theWindow
  77.   if videoDepth() Γëñ2 then put "├Ç proposNB" into theWindow
  78.   picture theWindow,resource,shadow,false,8
  79.   show window theWindow at "0,-20"
  80.   put the userlevel into PrevUseLev
  81.   repeat 2
  82.     play "4"
  83.   end repeat
  84.   stackConfig
  85.   AddColor install
  86.   openCard theWindow
  87. end openStack
  88. on openCard theWindow
  89.   Send colorMe to this card
  90.   if there is a window theWindow then close window theWindow
  91.   pass openCard
  92. end openCard
  93. on closeCard
  94.   lock screen
  95.   pass closeCard
  96. end closeCard
  97. on colorMe
  98.   AddColor colorCard,stamp,30
  99. end colorMe
  100. on suspend stack
  101.   clearConfig
  102. end suspend stack
  103. on resumeStack
  104.   stackConfig
  105. end resumeStack
  106. on closeStack
  107.   put empty into WList
  108.   AddColor remove
  109.   clearConfig
  110.   pass closeStack
  111. end closeStack
  112. on stackConfig
  113.   set userlevel to 5
  114.   reset menuBar
  115.   repeat with i = 14 down to 5
  116.     delete menuItem i of menu 2
  117.     delete menuItem i of menu 4
  118.   end repeat
  119.   delete menuItem 1 of menu 2
  120.   repeat with i = 8 down to 3
  121.     if i Γëá 4 then delete menu i
  122.   end repeat
  123.   if there is a menu "Color" then delete menu "Color"
  124.   set cantDelete of this stack to true
  125.   set cantAbort of this stack to false
  126.   set cantPeek of this stack to true
  127.   set blindTyping to false
  128.   set userLevel to 1
  129.   set cantModify of this stack to true
  130. end stackConfig
  131. on clearConfig
  132.   global PrevUseLev
  133.   set userlevel to PrevUseLev
  134.   set cantModify of this stack to false
  135.   reset menuBar
  136. end clearConfig
  137. on doMenu x,y
  138.   if y = "File" then
  139.     if x = "Protect Stack..." or x = "Delete Stack..." then exit doMenu
  140.     else pass doMenu
  141.   else if x contains "Info" then exit doMenu
  142.   else pass doMenu
  143. end doMenu
  144.  
  145. function videoDepth
  146. get screenRect()
  147. put (item 3 of it )-(item 1 of it) into widthScreen
  148. if widthScreen Γëñ 512 then return 0
  149. get getMode()
  150. if item 1 of screenRect() = 0 then put item 2 of line 1 of it into whatDepth
  151. else repeat with i = 2 to number of lines of it
  152. if item 6 of it = widthScreen then put item 2 of line i of it into whatDepth
  153. end repeat
  154. if whatDepth is not in "1,2,4,8,16,32" then put 0 into whatDepth
  155. return whatDepth
  156. end videoDepth
  157.